Magellan files that don't have $ in column zero now rejected instead of crashing.
authorrobertl <robertl>
Tue, 19 Dec 2006 19:15:02 +0000 (19:15 +0000)
committerrobertl <robertl>
Tue, 19 Dec 2006 19:15:02 +0000 (19:15 +0000)
magproto.c

index c23a529a7b55c0c38d02f07786bb481061783c13..c5c0f75950e97fe1183add6c0f8a279ac1adc259 100644 (file)
@@ -425,6 +425,12 @@ retry:
                }
        }
 
+       /* If column zero isn't a dollar sign, it's not for us */
+       if (ibuf[0] != '$') {
+               fatal(MYNAME ": line doesn't start with '$'.\n");
+       }
+
+
        isz = strlen(ibuf);
 
        if (isz < 5) {